package gui;

import javax.swing.JFrame;

import javax.swing.WindowConstants;

/**
 * @author Diego Davila did074 A frame for display the the student information
 *         that will be changed by the student
 * 
 * */
public class EditPersonalInfoFrame extends JFrame {

	/**
	 * Declaration of variables The standard width and weight for the frame.
	 * 
	 * */
	public static final int DEFAULT_WIDTH = 700;
	public static final int DEFAULT_HEIGHT = 500;

	/**
	 * Constructor of the class Initialise the standards features of the frame
	 * receives the Id of the student to be displayed, create the panel in witch
	 * the changes are going to be made and pass it the student Id.
	 * 
	 */
	public EditPersonalInfoFrame(int id) {
		setTitle("Edit Student Information");
		setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
		setResizable(false);

		EditPersonalInfoPanel panel = new EditPersonalInfoPanel(this, id);
		add(panel);
		setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);

	}

	private static final long serialVersionUID = 1L;

}
